package SQL.Spring.AOP;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * Created by kz on 2017/5/20.
 */
public class performApp
{
    final static Logger log = LoggerFactory.getLogger(performApp.class);

    public static void main(String[] args) {

        log.info("测试开始使用LOGGER");
        ApplicationContext context =
                new ClassPathXmlApplicationContext(new String[] {"SpringConfigs/Spring-Module.xml"});

        Performer performer = (Performer) context.getBean("performer");
        performer.perform();
        log.debug("LOGDEBUG输出");
        System.out.println("show is over");

        System.out.println("-----------------");
        log.error("LOG结束  (ERROR输出)");
    }
}
